WARNING: This program has a logic error! A logic error means the code runs, but it doesn't do what we want!
RULE: We must store values we want to use later in our program in a variable.
- Click Run and watch the stage to see the error. The sprite is supposed to say the sum, but we see nothing!
- Correct the program by adding total = before sum(list) so that the sum of the list is stored in a variable.
- Don't forget to change the argument in .say() to total!
To navigate the page using the TAB key, first press ESC to exit the code editor.